package com.newtype.meeting.client.model;

import java.io.Serializable;
import java.util.Date;

import javax.jdo.annotations.Extension;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.extjs.gxt.ui.client.data.BaseModel;

/**
 * 会议记录实体类
 * @author 汪恭泽
 * Jun 17, 2011 10:16:10 AM
 */
@SuppressWarnings("serial")
@PersistenceCapable(identityType = IdentityType.APPLICATION, detachable = "true")
public class MeetingRecord extends BaseModel implements Serializable {
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	@Extension(vendorName = "datanucleus", key = "gae.encoded-pk", value = "true")
	private String id;
	@Persistent
	private String meetingID;
	@Persistent
	private String deptID;
	@Persistent
	private String deptName;
	@Persistent
	private String accountID;
	@Persistent
	private String fullName;
	@Persistent
	private String subject;
	@Persistent
	private String content;
	@Persistent
	private String htmlTAG;
	@Persistent
	private String checkTAG;
	@Persistent
	private Date submitDATE;

	public MeetingRecord() {
	}

	public String getMeetingID() {
		return meetingID;
	}

	public void setMeetingID(String meetingID) {
		this.meetingID = meetingID;
	}

	public String getDeptID() {
		return deptID;
	}

	public void setDeptID(String deptID) {
		this.deptID = deptID;
	}

	public String getDeptName() {
		return deptName;
	}

	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}

	public String getAccountID() {
		return accountID;
	}

	public void setAccountID(String accountID) {
		this.accountID = accountID;
	}

	public String getFullName() {
		return fullName;
	}

	public void setFullName(String fullName) {
		this.fullName = fullName;
	}

	public String getSubject() {
		return subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getHtmlTAG() {
		return htmlTAG;
	}

	public void setHtmlTAG(String htmlTAG) {
		this.htmlTAG = htmlTAG;
	}

	public String getCheckTAG() {
		return checkTAG;
	}

	public void setCheckTAG(String checkTAG) {
		this.checkTAG = checkTAG;
	}

	public Date getSubmitDATE() {
		return submitDATE;
	}

	public void setSubmitDATE(Date submitDATE) {
		this.submitDATE = submitDATE;
	}

	public String getId() {
		return id;
	}

	public void updateProperties() {
		set("id", getId());
		set("meetingID", getMeetingID());
		set("deptID", getDeptID());
		set("deptName", getDeptName());
		set("accountID", getAccountID());
		set("fullName", getFullName());
		set("subject", getSubject());
		set("content", getContent());
		set("htmlTAG", getHtmlTAG());
		set("checkTAG", getCheckTAG());
		set("submitDATE", getSubmitDATE());
	}
}
